"""
所有操作交互管理者类
"""
from TestToolsV2.components.ComponentsController import componentsController
from TestToolsV2.data.DataController import dataController
from TestToolsV2.events.EventController import eventController


class gameManager:
    def __init__(self):
        self.__temp = None
        self.__datas = None
        self.__components = None
        self.__events = None
        self.__InitGame()

    def __InitGame(self):
        self.__datas = dataController()
        self.__components = componentsController()
        self.__events = eventController(self.__components, self.__datas)
        self.__events.set_mainEvents()

    def set_app(self, app):
        self.__events.set_app(app)

    def showMian(self):
        self.__components.mainWindown.showWindown()
